class MyClass:
    count = 0
    in1 = 1
    in2 = 2

    def __init__(self, in1, in2):
        self.in1 = in1
        self.in2 = in2

    def print_in1(self):
        print("in1:", self.in1)

    def print_in2(self):
        print("in2:", self.in2)


cl = MyClass(1, 2)
cl.print_in1()
cl.print_in2()


class people:
    name = ''
    age = 0
    __weight = 0

    def __init__(self, n, a, w):
        self.name = n
        self.age = a
        self.__weight = w

    def print_self(self):
        print('name={}, age={}, weight={}'.format(self.name, self.age, self.__weight))


p1 = people('los', 11, 1)
p1.print_self()


class student(people):
    grade = 0
    pp = people

    def __init__(self, pp, grade):
        pp.__init__()
        self.grade = grade

    def print_self(self):
        print('name={}, age={}, weight={}, grade={}'.format(self.name, self.age, self.__weight, self.grade))

stu = student(p1, 11)